/**
 * 
 */
package com.jquery.ui.dictionary;

/**
 * @author linyajun
 * 
 * @date	2013-10-10
 * @description   
 */
public enum IDataType {

	xml("xml"),json("json");
	private String type;
	private IDataType(String type){
		this.type=type;
	}
	
	public static IDataType parseValue(String type){
		if (xml.getType().equals(type)) {
			return xml;
		}else if (json.getType().equals(type)) {
			return json;
		}
		return json;
	}
	
	
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	
	
}
